<script type="text/javascript">
var successFun=function(res){
if(res.code==200){
	alert('更新成功！');
}
}
$(document).ready(function() { 
	var updateOptions	= {dataType:'json',error:doError,success:doSuccess}
    $('#form').ajaxForm(updateOptions); 
}); 
</script>
<div id="content">
<form id="form" action="{url('Site','SaveUcenter')}" method="post">
<h3 class="title">UC设置</h3>
<table class="admin-table">
	<tr>
	<td width="150">是否开启UC</td>
	<td>
<input name="ucenable" id="ucenable" type="checkbox" value="1" {if $this->data['uc']['enable']}checked{/if} /><span etype='error_info' class="error_info" id="ucenable_info"></span>
	</td>
	</tr>
	
	<tr>
	<td>UCenter的URL地址</td>
	<td>
<input name="ucapi" id="ucapi" type="text" value="{$this->data['uc']['ucapi']}" /><span etype='error_info' class="error_info" id="ucapi_info"></span>
	</td>
	</tr>
	<tr>
	<td>UCenter的IP</td>
	<td>
	<input name="ucip" id="ucip" type="text" value="{$this->data['uc']['ucip']}" /><span etype='error_info' class="error_info" id="ucip_info">默认请留空，当与UC通信存在问题的时候请填写为UC服务器的IP地址</span>
	</td>
	</tr>
	<tr>
	<td>与UCenter的通信密钥</td>
	<td>
<input name="uckey" id="uckey" type="text" value="{$this->data['uc']['uckey']}" /><span etype='error_info' class="error_info" id="uckey_info"></span>
	</td>
	</tr>
	<tr>
	<td>应用的ID</td>
	<td>
<input name="ucappid" id="ucappid" type="text" value="{$this->data['uc']['ucappid']}" /><span etype='error_info' class="error_info" id="ucappid_info"></span>
	</td>
	</tr>
	<tr>
	<td>UCenter的字符集</td>
	<td>
	<select name="charset">
	<option value="UTF8" {if $this->data['uc']['charset']=='UTF8'}selected{/if}>UTF8</option>
	</select>
	<span etype='error_info' class="error_info" id="charset_info"></span>
	</td>
	</tr>
	<tr><td colspan="2"><input id="btnSave" type="submit" value="保存" /></td></tr>
</table>
</form>
</div>